<div class="bigleft">
        	<div class="bmmenu">
            	<div class="bmenu">
                	<ul>
                                <?php include 'connect.php';
                                    $menu = $con->query("Select * from category");
                                    while ($row = mysqli_fetch_array($menu)) {
                                ?>
                            <li>
                                <div><a href="product.php?dmcha=<?php echo $row['id'];?>"><?php echo $row["name"] ?></a></div>
                                    <ul>
                                        <?php include 'connect.php';
                                    $menu2 = $con->query("Select * from categorydetail where category_id=".$row['id']);
                                    while ($row2 = mysqli_fetch_array($menu2)) {
                                ?>
                                        <div><li><a href="product.php?dmcon=<?php echo $row2['id'];?>"><?php echo $row2["name"] ?></a></li></div>
                                        <?php } ?>
                                    </ul>
                            </li>
                        
                                    <?php } ?>
                    </ul>
                </div>
            </div>
            <div class="bcontent">
		<div class="tit">Hàng mới về</div>
                    <?php 
                        $querry =$con->query("(select id, name, image, info, price from product LIMIT 8) union (select id, name, image, info, price from footwear LIMIT 8)");
                        while ($row = mysqli_fetch_array($querry)){
?>
            <div class="bsp">
                <form method="post" action="cart.php">
                <input type="hidden" name="name" value="<?php echo $row["name"]; ?>">
                <input type="hidden" name="image" value="<?php echo $row["image"]; ?>">
                <input type="hidden" name="id" value="<?php echo $row["id"]; ?>">
                <input type="hidden" name="price" value="<?php echo $row["price"]; ?>">
                <input type="hidden" name="num" value="1">
                <a href="listdetail.php?index=<?php echo $row['id'] ;?>"><img src="<?php echo $row["image"] ?>"/></a>
                <div class="bgia"><?php echo $row["name"]; ?></div>
                <div class="bgia"><div class="btext">Giá: </div><div class="color"><?php echo $row["price"] . " VNĐ"; ?></div></div>
                <div class="bgia"><input type="submit" value="Thêm vào giỏ hàng" name="addcart"/></div>
                </form>
            </div>
 <?php
}
 ?>
		</div>
               </div>
<?php include 'menu_right.php'; ?>